package com.graden.background.service.sysrole;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.graden.background.controller.sysrole.vo.RoleActivateVO;
import com.graden.background.controller.sysrole.vo.RoleAddVO;
import com.graden.background.controller.sysrole.vo.RoleSelectVO;
import com.graden.background.controller.sysrole.vo.RoleUpdateVO;
import com.graden.background.repository.sysrole.entity.SysRole;
import com.graden.background.repository.sysrole.entity.SysRoleDTO;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import java.util.List;

/**
 * <p>
 * 系统角色服务实现类
 * </p>
 *
 * @author zjf
 * @since 2019-03-21
 */
@Validated
public interface ISysRoleService extends IService<SysRole> {

	PageInfo getAllByPage(int pageNo, int size, RoleSelectVO roleSelectVO);

	List<SysRole> getAll();

	SysRoleDTO getInfo(Integer id);

	void addRole(@Valid RoleAddVO roleAddVO);

	void updateRole(@Valid RoleUpdateVO roleUpdateVO);

	void activateRole(@Valid RoleActivateVO roleActivateVO);

	void deleteRole(int id);
}
